const Routes = [
  {
    path: "/",
    redirect: "/goodsDetails",
  },
  {
    path: "/goodsDetails",
    name: "goodsDetails",
    component: () => import("../views/googsDetails/goodsDetails.vue"),
    meta: {
      name: "",
      isBack: false,
      keepAlive: true
    },
  },
  {
    path: "/goods_error",
    name: "goods_error",
    component: () => import("../views/googsDetails/goods_error.vue"),
    meta: {
      name: "商品详情",
      isBack: false,
      keepAlive: true
    },
  },

  {
    path: "/serviceAgreement",
    name: "serviceAgreement",
    component: () =>
      import("../views/serviceAgreement/serviceAgreement.vue"),
    meta: {
      name: "服务协议",
    },
  },
  {
    path: "/confirmOrder",
    name: "confirmorder",
    component: () => import("../views/confirmOrder/confirmOrder"),
    meta: {
      name: "密马APP",
      keepAlive: true,
    },
  },
  {
    path: "/usePacket",
    name: "usePacket",
    component: () => import("../views/confirmOrder/usePacket"),
    meta: {
      name: "密马APP",
      keepAlive: false,
      isBack: true
    },
  },
  {
    path: "/orderDetails",
    name: "orderDetails",
    component: () => import("../views/orderDetails/orderDetails.vue"),
    meta: {
      name: "订单详情",
      keepAlive: false,
    },
  },
  {
    path: "/scanToPay",
    name: "scanToPay",
    component: () =>
      import("../views/scanToPay/scanToPay"),
    meta: {
      name: "扫码支付",
      keepAlive: false
    }
  },
  {
    path: "/privacyAgreement",
    name: "privacyAgreement",
    component: () => import("../views/agreement/privacyAgreement"),
    meta: {
      name: "密马隐私政策",
      keepAlive: true
    }
  },
  {
    path: "/userAgreement",
    name: "userAgreement",
    component: () => import("../views/agreement/userAgreement"),
    meta: {
      name: "密马用户服务协议",
      keepAlive: true
    }
  },
  {
    path: "/packetDsc",
    name: "packetDsc",
    component: () => import("../views/agreement/packetDsc"),
    meta: {
      name: "使用说明",
      keepAlive: true
    }
  },
  {
    path: "/intro",
    name: "intro",
    component: () => import("../views/agreement/intro"),
    meta: {
      name: "密马简介",
      keepAlive: true
    }
  },
  {
    path: "/authentication",
    name: "authentication",
    component: () => import("../views/agreement/authentication"),
    meta: {
      name: "陪玩师认证攻略",
      keepAlive: true
    }
  },
  {
    path: "/real_name",
    name: "real_name",
    component: () => import("../views/agreement/real_name"),
    meta: {
      name: "防沉迷认证",
      keepAlive: true
    }
  },
  {
    path: "/anti_addiction",
    name: "anti_addiction",
    component: () => import("../views/agreement/anti_addiction"),
    meta: {
      name: "实名认证",
      keepAlive: true
    }
  },
  {
    path: "/beta_code",
    name: "beta_code",
    component: () => import("../views/betaTest/beta_code"),
    meta: {
      name: "密马内测",
      keepAlive: true
    }
  },
  {
    path: '/personal_page',
    name: 'personal_page',
    component: () => import(/* webpackChunkName: "about" */ '../views/betaTest/personal_page.vue'),
    meta: {
      name: '密马APP下载'
    }
  },
  {
    path: '/platform_announcement',
    name: 'platform_announcement',
    component: () => import(/* webpackChunkName: "about" */ '../views/agreement/platform_announcement.vue'),
    meta: {
      name: '平台公告'
    }
  },
  {
    path: '/with_certification',
    name: 'with_certification',
    component: () => import(/* webpackChunkName: "about" */ '../views/agreement/with_certification.vue'),
    meta: {
      name: '防沉迷认证'
    }
  },
  {
    path: '/invite_friends',
    name: 'invite_friends',
    component: () => import(/* webpackChunkName: "about" */ '../views/invite_friends/invite_friends.vue'),
    meta: {
      name: '送你密马APP红包'
    }
  },

];
export default Routes
